package com.yql.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Bom {
    private Integer id;
    private String types;
    private String ptype;
    private Long cpid;
    private Integer zvernum;
    private BigDecimal cvernum;
    private String ztpackage;
    private Integer zlose;
    private String zzr;
    private String shr;
    private String mark;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date created;
    private User user;
    private List<Bommx> bommxList;

    @Override
    public String toString() {
        return "Bom{" +
                "id=" + id +
                ", types='" + types + '\'' +
                ", ptype='" + ptype + '\'' +
                ", cpid='" + cpid + '\'' +
                ", zvernum=" + zvernum +
                ", cvernum=" + cvernum +
                ", ztpackage='" + ztpackage + '\'' +
                ", zlose=" + zlose +
                ", zzr='" + zzr + '\'' +
                ", shr='" + shr + '\'' +
                ", mark='" + mark + '\'' +
                ", created=" + created +
                ", user=" + user +
                ", bommxList=" + bommxList +
                '}';
    }

    public Bom() {
    }

    public Bom(Integer id, String types, String ptype, Long cpid, Integer zvernum, BigDecimal cvernum, String ztpackage, Integer zlose, String zzr, String shr, String mark, Date created, User user, List<Bommx> bommxList) {
        this.id = id;
        this.types = types;
        this.ptype = ptype;
        this.cpid = cpid;
        this.zvernum = zvernum;
        this.cvernum = cvernum;
        this.ztpackage = ztpackage;
        this.zlose = zlose;
        this.zzr = zzr;
        this.shr = shr;
        this.mark = mark;
        this.created = created;
        this.user = user;
        this.bommxList = bommxList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    public Long getCpid() {
        return cpid;
    }

    public void setCpid(Long cpid) {
        this.cpid = cpid;
    }

    public Integer getZvernum() {
        return zvernum;
    }

    public void setZvernum(Integer zvernum) {
        this.zvernum = zvernum;
    }

    public BigDecimal getCvernum() {
        return cvernum;
    }

    public void setCvernum(BigDecimal cvernum) {
        this.cvernum = cvernum;
    }

    public String getZtpackage() {
        return ztpackage;
    }

    public void setZtpackage(String ztpackage) {
        this.ztpackage = ztpackage;
    }

    public Integer getZlose() {
        return zlose;
    }

    public void setZlose(Integer zlose) {
        this.zlose = zlose;
    }

    public String getZzr() {
        return zzr;
    }

    public void setZzr(String zzr) {
        this.zzr = zzr;
    }

    public String getShr() {
        return shr;
    }

    public void setShr(String shr) {
        this.shr = shr;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Bommx> getBommxList() {
        return bommxList;
    }

    public void setBommxList(List<Bommx> bommxList) {
        this.bommxList = bommxList;
    }
}
